<!DOCTYPE html>
<html ng-app>
<head>
    <title>Simple app</title>
    <script type="text/javascript" src="lib/angular.js"></script>
    <script type="text/javascript">
        var HelloCtrl=function($scope) {
            $scope.name='world';
            console.info($scope.$parent);
        }
    </script>
</head>
<body>
<div ng-controller='HelloCtrl'><!-- 控制器 -->
    Say hello to: <input type="text" ng-model="name"/> <br/>
    <h1>Hello. {{ name }}</h1>
</div>
</body>
</html>